package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Classroom;
import cn.wolfcode.crm.domain.Grade;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IClassroomService {
    int saveOrUpdate(Classroom record);

    Classroom selectByPrimaryKey(Long id);

    List<Classroom> selectAll();

    PageResult query(QueryObject qo);

    /**
     * 根据id改变教室的状态
     * @param id
     */
    void changeState(Long id);

    /**
     * 根据前端传过来的教室编号和数据库做校验
     * @param sn
     * @return
     */
    Boolean validateName(String sn, Long id);

}

